package com.hzp.micromall.content.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * <p>
 * 专题分类表
 * </p>
 *
 * @author houzipeng
 * @since 2022-03-08 10:15:14
 */
@Getter
@Setter
@TableName("cms_subject_category")
@ApiModel(value = "SubjectCategory对象", description = "专题分类表")
public class SubjectCategory {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty("分类名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("分类图标")
    @TableField("icon")
    private String icon;

    @ApiModelProperty("专题数量")
    @TableField("subject_count")
    private Integer subjectCount;

    @ApiModelProperty("显示状态[0:不显示 1:显示]")
    @TableField("show_status")
    private Integer showStatus;

    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("是否删除（0：未删除 1：已删除）")
    @TableField("isDel")
    @TableLogic
    private Integer isDel;


}
